export const userStatus = (state, user) => {
  if (user.isLogin) {
    state.isLogin = user.isLogin
    state.userInfo = user.userInfo
  } else {
  //  退出登录的时候,清空
    state.userInfo = {}
    state.isLogin = false
  }
}

export const dictionaryStatus = (state, user) => {
  state.dictionary = user
}
